/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __CHR_MODEL_TREE_WIDGET_H__
#define __CHR_MODEL_TREE_WIDGET_H__

#include <map>

#include <QtGui/QWidget>
#include <QtGui/QToolBar>
#include <QtGui/QTreeWidget>

#include "WOWArchive.h"

namespace GBuilder
{
	class ChrModelTree : 
		public QTreeWidget
	{
		Q_OBJECT
	public:
		ChrModelTree(QWidget *parent = 0);
		void init();
	
	protected:
		void mousePressEvent(QMouseEvent *evt);
		void mouseMoveEvent(QMouseEvent *evt);
	private:
		/*Map item to path string
		*/
		QString getItemPath(QTreeWidgetItem* item);
	private:
		QPoint _dragStartPosition;
	};
	
	class CharacterModelWindow : 
		public QWidget
	{
		Q_OBJECT
	public:
		CharacterModelWindow(QWidget *parent = 0);
		~CharacterModelWindow();
	private:
		ChrModelTree *_treeWidget;
	};
}

#endif
